package com.yjt.auth.common.bean.domain.user;

import java.util.HashSet;
import java.util.Set;

import com.yjt.auth.common.bean.domain.role.MngRole;
import com.yjt.common.tools.TimeUtil;


public class MngUser extends AbstractMngUser implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	public static final String BEAN_PACKAGE_NAME = "com.yjt.auth.common.bean.domain.user.MngUser";
	private Set<MngRole> mngRoleSet = new HashSet<MngRole>();
	private String createDateTimeDesc;
	private String passwordConfirmed;
	
	public String getPasswordConfirmed() {
		return passwordConfirmed;
	}

	public void setPasswordConfirmed(String passwordConfirmed) {
		this.passwordConfirmed = passwordConfirmed;
	}

	public String getCreateDateTimeDesc() {
		return TimeUtil.changeStrTimeFormat(this.getCreateDate() + this.getCreateTime(), "yyyyMMddHHmmss", "yyyy-MM-dd HH:mm:ss");
	}

	public MngUser(){}
	
	public MngUser(String id, String createDate, String createTime,
			String name, boolean validate, String password, String admin) {
		super(id, createDate, createTime, name, validate, password, admin);
	}
	
	public Set<MngRole> getMngRoleSet() {
		return mngRoleSet;
	}

	public void setMngRoleSet(Set<MngRole> mngRoleSet) {
		this.mngRoleSet = mngRoleSet;
	}
}
